const app = getApp()
Page({
  data: {
    topList: [],
    bottomList: []
  },
  onLoad() {
    app._init_(this)
    this.getHome()
  },

  getHome() {
    app.other.home()
      .then(res => {
        // console.log(res.data.slideShows)
        const data = JSON.parse(res.data.bigType).data.newSale
        console.log("爆款专区", data)
        this.setData({
          topList: data.chose.products.slice(0, 2),
          bottomList: data.chose.products.slice(2)
        })
      })
  },
  // 跳转
  navigateTo(e) {
    app.navigateTo(e)
  }
});